from django import template
register = template.Library()

@register.filter
def myfilter(value):
	return 'ss'
    
class NavSelectedNode(template.Node):
    def __init__(self, url):
        self.url = url

    def render(self, context):
        path = context['request'].path
        if path.startswith(pValue):
            return 'active'
        return ''

register.filter('myfilter', myfilter)
